package org.ricks.condition2;

import org.ricks.condition2.event.PlayerAwareEvent;

import java.util.List;
import java.util.function.Predicate;

// 示例：玩家专用条件构建器
public class PlayerConditionBuilder {
    private final String playerId;

    public PlayerConditionBuilder(String playerId) {
        this.playerId = playerId;
    }

    public <E extends PlayerAwareEvent> Condition intCounter(Class<? extends E> eventType, int target) {
        return Conditions.intCounter(playerId, 0,target, eventType);
    }

    public Condition composite(Predicate<List<Condition>> predicate,
                                                            Condition... conditions) {
        return Conditions.composite(playerId ,predicate, conditions);
    }
}
